package com.sunshine.wrongquestionset.room.entity

import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 * @author sunshine
 * @date 2021/3/26
 * 用户实体类
 */
@Entity(tableName = "user")
class UserEntity(
    @PrimaryKey
    val id: String,
    var password: String,
    //2021 4 15新增 昵称 每次最大练习次数
    //昵称，默认就是id
    var nickname: String = id
) {
    override fun toString(): String {
        return "UserEntity(id='$id', password='$password')"
    }
}